* lisp.h (GLYPH_FACE): Remember that the face portion of a glyph
authorJim Blandy <jimb@redhat.com>
Sun, 23 May 1993 19:23:38 +0000 (19:23 +0000)
committerJim Blandy <jimb@redhat.com>
Sun, 23 May 1993 19:23:38 +0000 (19:23 +0000)
can be 24 bits, not just eight.

src/lisp.h

index 06abaa128db2a4825dc13c9067d7f09356cfab1f..a41a73269e53628b2a929d4c3476e807d75ca034 100644 (file)
@@ -606,7 +606,7 @@ typedef unsigned char UCHAR;
 #define GLYPH_CHAR(glyph) ((glyph) & 0xff)
 
 /* Return a glyph's face ID.  */
-#define GLYPH_FACE(glyph) (((glyph) >> 8) & 0xff)
+#define GLYPH_FACE(glyph) (((glyph) >> 8) & ((1 << 24) - 1))
 
 \f
 /* Data type checking */